package com.semicolon_mento;



import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Display;
import android.view.Menu;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.LinearLayout;

public class MainActivity extends Activity {
	LinearLayout layout;
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        layout=(LinearLayout)findViewById(R.id.back_layout);
	    layout.setBackgroundResource(R.drawable.back);	//background image	
    }
    
    public void manualClick(View v) {
       	Intent intent = new Intent(this, manualmenu.class);
    	startActivity(intent);
    }
    
    public void checkTodayClick(View v) {
       	Intent intent = new Intent(this, CheckTodayActivity.class);
    	startActivity(intent);
    }
    
    public void viewGraphClick(View v) {
       	Intent intent = new Intent(this, GraphActivity.class);
    	startActivity(intent);
    }
    
    public void exitClick(View v) {
    	android.os.Process.killProcess(android.os.Process.myPid()); 
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
